<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    protected $table = 'roles';
    protected $primaryKey = 'id';
    public $timestamps  = false;
    public $guarded = ['name','display_name','description'];

    /**
     * 属于该身份的用户。
     */

    
    public function users()
    {
        return $this->belongsToMany('App\Http\Model\Admin_ser');
    }

    public function permissions()
    {
        return $this->belongsToMany('App\Http\Model\Permission');
    }
    

}
